from elasticsearch import Elasticsearch
 #https://blog.csdn.net/wufaliang003/article/details/81368365?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
es = Elasticsearch()
result = es.indices.create(index='news', ignore=400)
print(result)
